package debuggen;

import java.util.logging.Level;

/**
 * DebugException
 * @author Danny
 */
public class DebugException extends Exception {
	
	/**
	 * serial
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * Constructor
	 * @param p_strMessage
	 */
	public DebugException(String p_strMessage)
	{
		this(p_strMessage, Level.INFO);
	}
	/**
	 * Constructor
	 * @param p_strMessage
	 * @param p_Level
	 */
	public DebugException(String p_strMessage, Level p_Level)
	{
		Debug.logWriter.writeMessage(p_strMessage, p_Level);	
	}
	/**
	 * Constructor
	 * @param p_strMessage
	 * @param p_Level
	 * @param p_excException
	 */
	public DebugException(String p_strMessage, Level p_Level, Exception p_excException)
	{
		Debug.logWriter.writeMessage(p_strMessage + p_excException.toString(), p_Level);
	}
}
